package com.example.springboot.mybatis.hikaricp;

import java.io.*;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        File passwordfile = new File("F:\\test.txt");
        PrintWriter write = null;
        write = new PrintWriter(new OutputStreamWriter(new FileOutputStream(passwordfile)));
        write.println("12345678");
        write.flush();
        if (write != null) {
            write.close();
        }
    }
}
